package com.yunxi.core.util;

/**
 * Created by Administrator on 2019/5/22.
 */
public class MathUtil {
    public static void main(String[] args) {
        int count=getCount(310,300);
        System.out.println(count);
    }
    public static int getCount(int total,int pageSize) {
        int a = total;
        int b = pageSize;
        double c = ((double)a)/b;
        int d = (int) Math.ceil(c);
        return d;
    }
}
